namespace UniversalAdminSystem.Domian.Core.ValueObjects;

/// <summary>
/// 权限ID值对象
/// </summary>
public record PermissionId
{
    public Guid Value { get; init; }

    public PermissionId(Guid value)
    {
        Value = value;
    }

    public static PermissionId Create(Guid value)
    {
        return new PermissionId(value);
    }

    public static implicit operator Guid(PermissionId permissionId) => permissionId.Value;
    public static implicit operator PermissionId(Guid value) => new(value);
} 